<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const date = new Date()
        console.log(Math.floor(date.getTime()/1000/60/60/24/365));
        // let year = date.getFullYear(1)
        // let yue = date.getMonth()+1
        // let ri = date.getDate()
        // let shi = date.getHours()
        // let fen = date.getMinutes()
        // let miao = date.getSeconds()
        // let week = date.getDay()
        // let arr = ['星期日','星期一','星期二','星期三','星期四','星期五','星期六']
        // document.write(`
        // 年${year}月${yue}日${ri}时${shi}分${fen}秒${miao}   ${arr[week]}
        // `)
        
        
    </script>
</body>
</html>